<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<%@ taglib prefix="stella" uri="http://stella.caelum.com.br/faces"%>
<%@ taglib prefix="a4j" uri="http://richfaces.org/a4j"%>
<%@ taglib prefix="t" uri="http://myfaces.apache.org/tomahawk"%>

<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	</head>
<body>
	<f:view>
		<center>
		 	 <h:form id="pesquisa">
				<fieldset>
		 		<legend>Pesquisa de Pessoas</legend>
			 		<h:panelGrid columns="2">
					 	<h:outputLabel for="nome" value="Digite o nome do aeroporto: " />
					 	<h:inputText id="nome" size="40" maxlength="150" value="#{aeroportoController.aeroporto.nome}" required="true" label="Nome"/>
						<rich:suggestionbox for="nome" suggestionAction="#{aeroportoController.searchAeroportos}" width="230" height="120" var="item" minChars="3">
							<h:column>
								<h:outputText value="#{item}"/>
							</h:column>
						</rich:suggestionbox>
					 	<h:commandButton value="Pesquisar" action="#{aeroportoController.search}" styleClass="botoes"/>
				 	</h:panelGrid>
				</fieldset>
			</h:form>
		</center>
</f:view>
</html>